#ifndef EDIBLEFISH_H
#define EDIBLEFISH_H
#include "Factory.h"
#include "Fish.h"
#include "Math.h"
#include "FishSkeleton.h"
#include "ScrollingObject.h"
#include "GameStateManager.h"
#include "GameStateEnum.h"

class EdibleFish : public ScrollingObject
{
private:
	float startHeight;
	float bobSpeed;
	float bobHeight;
	float bobTimerOffset;

	float isAlive = true;

	sf::Clock timer;
	const char* skeletonFileName = "images/skeletonImage.png";

public:
	EdibleFish(sf::Vector2f startPos = sf::Vector2f(0, 0),
		float scale = 1.0f,
		float bobFrequency = 1.0f,
		float bobAmplitude = 50.0f,
		float bobTimeOffset = 1.0f,
		sf::Vector2f startVel = sf::Vector2f(0, 0),
		const char* fileName = "images/ediblefishImage.png") : ScrollingObject(startPos, startVel, fileName, scale)
	{
		GameStateManager::IncreaseNumOfFish();
		isPhysical = false;
		startHeight = startPos.y;
		bobSpeed = bobFrequency;
		bobHeight = bobAmplitude;
		bobTimerOffset = bobTimeOffset;

		pos = startPos;

		//myFish = new Fish(startPos, scale, startVel, fileName);
		//myFish->isCollidable = false;
		//myFish->isPhysical = false;
		//radius = myFish->radius;
	};
	~EdibleFish(){};

	void Update(float deltaT);
	void CollidedWith(Object* collided);
};


#endif // EDIBLEFISH_H